package org.kernely.security.ui.administration;

import org.kernely.ui.mvp.IKernelyView;

import com.vaadin.ui.Component;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.VerticalLayout;

public class SecurityAdministrationView extends VerticalLayout implements IKernelyView {

	/**
	 * Serial Version ID
	 */
	private static final long serialVersionUID = -624864919234102350L;

	/**
	 * The view ID, for the association between views and presenters
	 */
	public final static Class<? extends IKernelyView> ID_VIEW = SecurityAdministrationView.class;
	
	/**
	 * Tabsheet containing Users / Groups
	 */
	private TabSheet tabsheet;
	
	/**
	 * SecurityAdministrationView's constructor
	 */
	public SecurityAdministrationView(){
		this.tabsheet = new TabSheet();
		this.tabsheet.setSizeFull();
		
		this.addComponent(tabsheet);
		this.setSizeFull();
	}

	/**
	 * @see org.kernely.ui.mvp.IKernelyView#getComponent()
	 */
	public final Component getComponent() {
		return this;
	}
	
	/**
	 * Gets the tabSheet containing Users and Groups
	 * @return the tabsheet
	 */
	public final TabSheet getTabSheet(){
		return this.tabsheet;
	}
}
